package com.bjqg.greendao;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.bjqg.bjqg01.bjqg.activity.longrange.bean.ContentBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.CydwBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.CyrBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.GcncBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.JzdwBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.JzrBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.SbBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.SccjBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.SgbwBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.WtdwBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.WtrBean;
import com.bjqg.bjqg01.bjqg.activity.longrange.bean.WtrPhoneBean;
import com.bjqg.bjqg01.bjqg.bean.Client;
import com.bjqg.bjqg01.bjqg.bean.History;

import com.bjqg.greendao.ContentBeanDao;
import com.bjqg.greendao.CydwBeanDao;
import com.bjqg.greendao.CyrBeanDao;
import com.bjqg.greendao.GcncBeanDao;
import com.bjqg.greendao.JzdwBeanDao;
import com.bjqg.greendao.JzrBeanDao;
import com.bjqg.greendao.SbBeanDao;
import com.bjqg.greendao.SccjBeanDao;
import com.bjqg.greendao.SgbwBeanDao;
import com.bjqg.greendao.WtdwBeanDao;
import com.bjqg.greendao.WtrBeanDao;
import com.bjqg.greendao.WtrPhoneBeanDao;
import com.bjqg.greendao.ClientDao;
import com.bjqg.greendao.HistoryDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig contentBeanDaoConfig;
    private final DaoConfig cydwBeanDaoConfig;
    private final DaoConfig cyrBeanDaoConfig;
    private final DaoConfig gcncBeanDaoConfig;
    private final DaoConfig jzdwBeanDaoConfig;
    private final DaoConfig jzrBeanDaoConfig;
    private final DaoConfig sbBeanDaoConfig;
    private final DaoConfig sccjBeanDaoConfig;
    private final DaoConfig sgbwBeanDaoConfig;
    private final DaoConfig wtdwBeanDaoConfig;
    private final DaoConfig wtrBeanDaoConfig;
    private final DaoConfig wtrPhoneBeanDaoConfig;
    private final DaoConfig clientDaoConfig;
    private final DaoConfig historyDaoConfig;

    private final ContentBeanDao contentBeanDao;
    private final CydwBeanDao cydwBeanDao;
    private final CyrBeanDao cyrBeanDao;
    private final GcncBeanDao gcncBeanDao;
    private final JzdwBeanDao jzdwBeanDao;
    private final JzrBeanDao jzrBeanDao;
    private final SbBeanDao sbBeanDao;
    private final SccjBeanDao sccjBeanDao;
    private final SgbwBeanDao sgbwBeanDao;
    private final WtdwBeanDao wtdwBeanDao;
    private final WtrBeanDao wtrBeanDao;
    private final WtrPhoneBeanDao wtrPhoneBeanDao;
    private final ClientDao clientDao;
    private final HistoryDao historyDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        contentBeanDaoConfig = daoConfigMap.get(ContentBeanDao.class).clone();
        contentBeanDaoConfig.initIdentityScope(type);

        cydwBeanDaoConfig = daoConfigMap.get(CydwBeanDao.class).clone();
        cydwBeanDaoConfig.initIdentityScope(type);

        cyrBeanDaoConfig = daoConfigMap.get(CyrBeanDao.class).clone();
        cyrBeanDaoConfig.initIdentityScope(type);

        gcncBeanDaoConfig = daoConfigMap.get(GcncBeanDao.class).clone();
        gcncBeanDaoConfig.initIdentityScope(type);

        jzdwBeanDaoConfig = daoConfigMap.get(JzdwBeanDao.class).clone();
        jzdwBeanDaoConfig.initIdentityScope(type);

        jzrBeanDaoConfig = daoConfigMap.get(JzrBeanDao.class).clone();
        jzrBeanDaoConfig.initIdentityScope(type);

        sbBeanDaoConfig = daoConfigMap.get(SbBeanDao.class).clone();
        sbBeanDaoConfig.initIdentityScope(type);

        sccjBeanDaoConfig = daoConfigMap.get(SccjBeanDao.class).clone();
        sccjBeanDaoConfig.initIdentityScope(type);

        sgbwBeanDaoConfig = daoConfigMap.get(SgbwBeanDao.class).clone();
        sgbwBeanDaoConfig.initIdentityScope(type);

        wtdwBeanDaoConfig = daoConfigMap.get(WtdwBeanDao.class).clone();
        wtdwBeanDaoConfig.initIdentityScope(type);

        wtrBeanDaoConfig = daoConfigMap.get(WtrBeanDao.class).clone();
        wtrBeanDaoConfig.initIdentityScope(type);

        wtrPhoneBeanDaoConfig = daoConfigMap.get(WtrPhoneBeanDao.class).clone();
        wtrPhoneBeanDaoConfig.initIdentityScope(type);

        clientDaoConfig = daoConfigMap.get(ClientDao.class).clone();
        clientDaoConfig.initIdentityScope(type);

        historyDaoConfig = daoConfigMap.get(HistoryDao.class).clone();
        historyDaoConfig.initIdentityScope(type);

        contentBeanDao = new ContentBeanDao(contentBeanDaoConfig, this);
        cydwBeanDao = new CydwBeanDao(cydwBeanDaoConfig, this);
        cyrBeanDao = new CyrBeanDao(cyrBeanDaoConfig, this);
        gcncBeanDao = new GcncBeanDao(gcncBeanDaoConfig, this);
        jzdwBeanDao = new JzdwBeanDao(jzdwBeanDaoConfig, this);
        jzrBeanDao = new JzrBeanDao(jzrBeanDaoConfig, this);
        sbBeanDao = new SbBeanDao(sbBeanDaoConfig, this);
        sccjBeanDao = new SccjBeanDao(sccjBeanDaoConfig, this);
        sgbwBeanDao = new SgbwBeanDao(sgbwBeanDaoConfig, this);
        wtdwBeanDao = new WtdwBeanDao(wtdwBeanDaoConfig, this);
        wtrBeanDao = new WtrBeanDao(wtrBeanDaoConfig, this);
        wtrPhoneBeanDao = new WtrPhoneBeanDao(wtrPhoneBeanDaoConfig, this);
        clientDao = new ClientDao(clientDaoConfig, this);
        historyDao = new HistoryDao(historyDaoConfig, this);

        registerDao(ContentBean.class, contentBeanDao);
        registerDao(CydwBean.class, cydwBeanDao);
        registerDao(CyrBean.class, cyrBeanDao);
        registerDao(GcncBean.class, gcncBeanDao);
        registerDao(JzdwBean.class, jzdwBeanDao);
        registerDao(JzrBean.class, jzrBeanDao);
        registerDao(SbBean.class, sbBeanDao);
        registerDao(SccjBean.class, sccjBeanDao);
        registerDao(SgbwBean.class, sgbwBeanDao);
        registerDao(WtdwBean.class, wtdwBeanDao);
        registerDao(WtrBean.class, wtrBeanDao);
        registerDao(WtrPhoneBean.class, wtrPhoneBeanDao);
        registerDao(Client.class, clientDao);
        registerDao(History.class, historyDao);
    }
    
    public void clear() {
        contentBeanDaoConfig.clearIdentityScope();
        cydwBeanDaoConfig.clearIdentityScope();
        cyrBeanDaoConfig.clearIdentityScope();
        gcncBeanDaoConfig.clearIdentityScope();
        jzdwBeanDaoConfig.clearIdentityScope();
        jzrBeanDaoConfig.clearIdentityScope();
        sbBeanDaoConfig.clearIdentityScope();
        sccjBeanDaoConfig.clearIdentityScope();
        sgbwBeanDaoConfig.clearIdentityScope();
        wtdwBeanDaoConfig.clearIdentityScope();
        wtrBeanDaoConfig.clearIdentityScope();
        wtrPhoneBeanDaoConfig.clearIdentityScope();
        clientDaoConfig.clearIdentityScope();
        historyDaoConfig.clearIdentityScope();
    }

    public ContentBeanDao getContentBeanDao() {
        return contentBeanDao;
    }

    public CydwBeanDao getCydwBeanDao() {
        return cydwBeanDao;
    }

    public CyrBeanDao getCyrBeanDao() {
        return cyrBeanDao;
    }

    public GcncBeanDao getGcncBeanDao() {
        return gcncBeanDao;
    }

    public JzdwBeanDao getJzdwBeanDao() {
        return jzdwBeanDao;
    }

    public JzrBeanDao getJzrBeanDao() {
        return jzrBeanDao;
    }

    public SbBeanDao getSbBeanDao() {
        return sbBeanDao;
    }

    public SccjBeanDao getSccjBeanDao() {
        return sccjBeanDao;
    }

    public SgbwBeanDao getSgbwBeanDao() {
        return sgbwBeanDao;
    }

    public WtdwBeanDao getWtdwBeanDao() {
        return wtdwBeanDao;
    }

    public WtrBeanDao getWtrBeanDao() {
        return wtrBeanDao;
    }

    public WtrPhoneBeanDao getWtrPhoneBeanDao() {
        return wtrPhoneBeanDao;
    }

    public ClientDao getClientDao() {
        return clientDao;
    }

    public HistoryDao getHistoryDao() {
        return historyDao;
    }

}
